<!DOCTYPE html>
  <html>
    <head>
      <title>sdcms_学习</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css">
      
      
      
      
      
      
      
      
      
      

      <style> 
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{padding:0 1.6em;margin-top:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li{margin-bottom:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{list-style-type:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  150px);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
 
      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview   ">
      <h1></h1>
<h2 class="mume-header" id="sdcms%E6%89%8B%E5%86%8C">SDCMS手册</h2>

<ul>
<li><a href="#sdcms%E6%89%8B%E5%86%8C">SDCMS手册</a></li>
<li><a href="#%E6%A0%87%E7%AD%BE%E8%AF%B4%E6%98%8E">标签说明</a>
<ul>
<li><a href="#%E5%B8%B8%E9%87%8F%E6%A0%87%E7%AD%BE">常量标签</a></li>
<li><a href="#%E5%9B%BA%E5%AE%9A%E6%A0%BC%E5%BC%8F%E6%A0%87%E7%AD%BE">固定格式标签</a></li>
<li><a href="#%E6%9D%A1%E4%BB%B6%E5%88%A4%E6%96%AD">条件判断</a></li>
<li><a href="#%E6%99%AE%E9%80%9A%E5%BE%AA%E7%8E%AF">普通循环</a></li>
<li><a href="#%E4%B8%87%E8%83%BD%E5%BE%AA%E7%8E%AF%E6%A0%87%E7%AD%BE">万能循环标签</a></li>
<li><a href="#%E6%A0%87%E7%AD%BE%E9%99%84%E5%BD%95">标签附录</a>
<ul>
<li><a href="#%E7%B3%BB%E7%BB%9F%E6%A8%A1%E5%9D%97%E6%A0%87%E7%AD%BE">系统模块标签</a></li>
<li><a href="#%E5%8D%95%E9%A1%B5%E6%A8%A1%E5%9D%97%E6%A0%87%E7%AD%BE">单页模块标签</a></li>
<li><a href="#%E5%86%85%E5%AE%B9%E6%A8%A1%E5%9D%97%E5%88%97%E8%A1%A8%E9%A1%B5%E6%A0%87%E7%AD%BE">内容模块列表页标签</a></li>
<li><a href="#%E6%96%B0%E9%97%BB%E6%A8%A1%E5%9E%8B%E5%86%85%E5%AE%B9%E9%A1%B5%E6%A0%87%E7%AD%BE">新闻模型内容页标签</a></li>
<li><a href="#%E6%8B%9B%E8%81%98%E6%A8%A1%E5%9E%8B%E5%86%85%E5%AE%B9%E9%A1%B5%E6%A0%87%E7%AD%BE">招聘模型内容页标签</a></li>
<li><a href="#%E4%BA%A7%E5%93%81%E6%A8%A1%E5%9E%8B%E5%86%85%E5%AE%B9%E9%A1%B5%E6%A0%87%E7%AD%BE">产品模型内容页标签</a></li>
</ul>
</li>
<li><a href="#%E6%A8%A1%E6%9D%BF%E8%AE%BE%E8%AE%A1">模板设计</a>
<ul>
<li><a href="#%E6%A8%A1%E6%9D%BF%E7%BB%93%E6%9E%84">模板结构</a></li>
<li><a href="#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98">常见问题</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 class="mume-header" id="%E6%A0%87%E7%AD%BE%E8%AF%B4%E6%98%8E">标签说明</h2>

<h3 class="mume-header" id="%E5%B8%B8%E9%87%8F%E6%A0%87%E7%AD%BE">常量标签</h3>

<table>
<thead>
<tr>
<th>名字</th>
<th>标签</th>
<th>结果参考</th>
</tr>
</thead>
<tbody>
<tr>
<td>网站相对路径</td>
<td>{WEB_ROOT}</td>
<td>/</td>
</tr>
<tr>
<td>网站网址</td>
<td>{WEB_URL}</td>
<td><a href="http://www.sdcms.cn">http://www.sdcms.cn</a></td>
</tr>
<tr>
<td>当前页面网址</td>
<td>{WEB_LOCAL}</td>
<td>/home/index/index.html</td>
</tr>
<tr>
<td>上一个页面网址</td>
<td>{PRE_URL}</td>
<td>/home/index/index.html</td>
</tr>
<tr>
<td>备注:此类标签为固定格式,区分大小写</td>
<td>--</td>
<td>--</td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="%E5%9B%BA%E5%AE%9A%E6%A0%BC%E5%BC%8F%E6%A0%87%E7%AD%BE">固定格式标签</h3>

<table>
<thead>
<tr>
<th>名字</th>
<th>标签</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>包含文件</td>
<td>{incloue file=&quot;top.html&quot;}</td>
<td>支持文件夹,相对于模板根目录</td>
</tr>
<tr>
<td>区块调用</td>
<td>{block(&quot;contact&quot;)}</td>
<td>调用标签在后台区块管理中获取</td>
</tr>
<tr>
<td>系统变量</td>
<td>{C('字段名')} 或 {sdcms[字段名]}</td>
<td>说明：字段名请至后台设置分组的字段管理里查找</td>
</tr>
<tr>
<td>变量</td>
<td>{$var}</td>
<td>说明：变量支持运算，如：{$a+$b} 　{$a-$b} 　 {$a$b} 　{$a/$b}等</td>
</tr>
<tr>
<td>no标签</td>
<td>{no}不解析的代码片段{/no}</td>
<td>固定格式，中间任何代码均不会被当作标签执行</td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="%E6%9D%A1%E4%BB%B6%E5%88%A4%E6%96%AD">条件判断</h3>

<table>
<thead>
<tr>
<th>名字</th>
<th>标签</th>
</tr>
</thead>
<tbody>
<tr>
<td>if标签</td>
<td>{if 条件} <br> 结果1<br>{elseif 条件2}<br>结果2<br>{else}<br>结果3<br>{/if}</td>
</tr>
<tr>
<td>switch标签</td>
<td>{switch $a}<br> {switch $a}<br> {case 2}值2{/case}　<br> {case 2}值2{/case}<br> {default}其他值<br> {/switch}</td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="%E6%99%AE%E9%80%9A%E5%BE%AA%E7%8E%AF">普通循环</h3>

<table>
<thead>
<tr>
<th>名字</th>
<th>标签</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>for循环</td>
<td>{for min=&quot;3&quot; max=&quot;10&quot; step=&quot;2&quot; var=&quot;j&quot;}<br>{$j}<br>{/for}</td>
<td>min参数是循环最小值，max参数为循环最大值，step参数是步长，默认为1，var参数是循环变量。</td>
</tr>
<tr>
<td>foreach循环</td>
<td>{foreach <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>d</mi><mi>a</mi><mi>t</mi><mi>a</mi><mi>a</mi><mi>s</mi></mrow><annotation encoding="application/x-tex">data as</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base"><span class="mord mathit">d</span><span class="mord mathit">a</span><span class="mord mathit">t</span><span class="mord mathit">a</span><span class="mord mathit">a</span><span class="mord mathit">s</span></span></span></span>key}<br>{$key['下标']<br>{/foreach}</td>
<td></td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="%E4%B8%87%E8%83%BD%E5%BE%AA%E7%8E%AF%E6%A0%87%E7%AD%BE">万能循环标签</h3>

<table>
<thead>
<tr>
<th>名字</th>
<th>标签</th>
</tr>
</thead>
<tbody>
<tr>
<td>万能循环标签</td>
<td>{sdcms:rs top=&quot;数量&quot; field=&quot;字段1,字段2&quot; table=&quot;表名&quot; join=&quot;join参数&quot; group=&quot;group参数&quot; where=&quot;条件&quot; order=&quot;排序&quot; pagesize=&quot;分页数量&quot;  num=&quot;分页数字间隔数量&quot; auto=&quot;i&quot;}<br>{rs:eof}查不到数据时显示的内容{/rs:eof}<br>{$rs[字段名]}<br>获取总数量：{$total_rs}<br>{/sdcms:rs}</td>
</tr>
</tbody>
</table>
<blockquote>
<ol>
<li>top参数，要显示的最大数量，默认值为10，设置0时，调用全部数据，可选</li>
<li>field参数，查询的字段，默认为*，即表示查询所有字段，可选</li>
<li>table参数，表名，必须填写参数</li>
<li>join参数，联合查询，可以查询多个表中的数据时使用，可选</li>
<li>group参数，分组字段，可选</li>
<li>where参数，查询条件，可选</li>
<li>order参数，排序条件，可选择</li>
<li>pagesize参数，分页，如果使用了pagesize则top参数无效，可选</li>
<li>num参数，配合pagesize参数使用，默认值为5</li>
<li>auto参数，循环中的自增变量，默认为i，如果嵌套使用循环标签，要设置其他值，否则会有冲突，可选.</li>
</ol>
</blockquote>
<p><strong>另循环标签中的rs，是可变的，但一个循环中必须统一。万能循环标签支持无限嵌套</strong></p>
<p>万能循环标签可以读取数据库中的任何一张表的数据，最简单的写法如下：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span>sdcms<span class="token punctuation">:</span>rs table<span class="token operator">=</span><span class="token double-quoted-string string">"sd_content"</span><span class="token punctuation">}</span>　　
<span class="token operator">&lt;</span>p<span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$i</span><span class="token punctuation">}</span>、<span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>p<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span>sdcms<span class="token punctuation">:</span>rs<span class="token punctuation">}</span>
</pre><p>上面标签的意思是：读取内容表“sd_content”中的前10条数据，循环中的内容是标题，$i是自增变量，依次是：1，2，3，4等</p>
<h3 class="mume-header" id="%E6%A0%87%E7%AD%BE%E9%99%84%E5%BD%95">标签附录</h3>

<h4 class="mume-header" id="%E7%B3%BB%E7%BB%9F%E6%A8%A1%E5%9D%97%E6%A0%87%E7%AD%BE">系统模块标签</h4>

<p><a href="xt.md">点击查看</a></p>
<h4 class="mume-header" id="%E5%8D%95%E9%A1%B5%E6%A8%A1%E5%9D%97%E6%A0%87%E7%AD%BE">单页模块标签</h4>

<p>栏目名称：</p>
<blockquote>
<p>{$catename}</p>
</blockquote>
<p>优化标题：</p>
<blockquote>
<p>{$catetitle}</p>
</blockquote>
<p>关键字：</p>
<blockquote>
<p>{$catekey}</p>
</blockquote>
<p>描述：</p>
<blockquote>
<p>{$catedesc}</p>
</blockquote>
<p>组图部分：</p>
<blockquote>
<p>{if is_array($piclist)}<br>
{foreach $piclist as $key=&gt;$rs}</p>
</blockquote>
<pre data-role="codeBlock" data-info="html" class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>img</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>{$rs[<span class="token punctuation">'</span>image<span class="token punctuation">'</span>]}<span class="token punctuation">"</span></span> <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>{$rs[<span class="token punctuation">'</span>desc<span class="token punctuation">'</span>]}<span class="token punctuation">"</span></span> <span class="token attr-name">width</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>230<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>{$rs['desc']}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
{/foreach}
{/if}
</pre><p>组图部分标签说明：如果存在，则循环输出图片和说明<br>
单页内容：</p>
<blockquote>
<p>{<span style="color: #ee7f49; font-weight: 500;">ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 8: content}̲
单页内容分页：
{pagel…</span>page,$pagenum)}</p>
</blockquote>
<p>单页模块标签的更多用法请查看默认模板：theme/default/content/page/page.php</p>
<h4 class="mume-header" id="%E5%86%85%E5%AE%B9%E6%A8%A1%E5%9D%97%E5%88%97%E8%A1%A8%E9%A1%B5%E6%A0%87%E7%AD%BE">内容模块列表页标签</h4>

<p>以下适用于：文章，产品，招聘等模块的列表页面<br>
栏目名称：</p>
<blockquote>
<p>{$ catename}</p>
</blockquote>
<p>优化标题：</p>
<blockquote>
<p>{$ catetitle}</p>
</blockquote>
<p>关键字：</p>
<blockquote>
<p>{$ catekey}</p>
</blockquote>
<p>描述：</p>
<blockquote>
<p>{$ catedesc}</p>
</blockquote>
<p>面包屑导航（所有内容模块的列表通用，可以自己随意组合，仅为示范）</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token operator">&lt;</span> ol  <span class="token keyword">class</span> <span class="token operator">=</span> “am<span class="token operator">-</span>breadcrumb am<span class="token operator">-</span>breadcrumb<span class="token operator">-</span>slash” <span class="token operator">></span>
<span class="token operator">&lt;</span> 锂 <span class="token operator">></span> <span class="token operator">&lt;</span> 一个 <span class="token constant">HREF</span> <span class="token operator">=</span> “<span class="token punctuation">{</span><span class="token punctuation">}</span> <span class="token constant">WEB_ROOT</span>”  类 <span class="token operator">=</span> “<span class="token constant">AM</span><span class="token operator">-</span>图标家” <span class="token operator">></span>首页<span class="token operator">&lt;</span><span class="token operator">/</span> 一 <span class="token operator">></span> <span class="token operator">&lt;</span><span class="token operator">/</span> 李 <span class="token operator">></span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> $ position <span class="token keyword">as</span> $ rs<span class="token punctuation">}</span>
<span class="token operator">&lt;</span> 锂 <span class="token operator">></span> <span class="token operator">&lt;</span> 一个 <span class="token constant">HREF</span> <span class="token operator">=</span> “<span class="token punctuation">{</span>cateurl（$ <span class="token constant">RS</span>）<span class="token punctuation">}</span>”  标题 <span class="token operator">=</span> “<span class="token punctuation">{</span>get_catename（$ <span class="token constant">RS</span>）<span class="token punctuation">}</span>” <span class="token operator">></span> <span class="token punctuation">{</span>get_catename（$ <span class="token constant">RS</span>）<span class="token punctuation">}</span> <span class="token operator">&lt;</span><span class="token operator">/</span> 一 <span class="token operator">></span> <span class="token operator">&lt;</span><span class="token operator">/</span> 李 <span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">foreach</span><span class="token punctuation">}</span>的
<span class="token operator">&lt;</span> li  <span class="token keyword">class</span> <span class="token operator">=</span> “am<span class="token operator">-</span>active” <span class="token operator">></span>列表<span class="token operator">&lt;</span><span class="token operator">/</span> li <span class="token operator">></span> <span class="token operator">&lt;</span><span class="token operator">/</span> ol <span class="token operator">></span>
筛选标签（所有内容模块的列表通用，固定格式，直接复制即可）：

<span class="token punctuation">{</span> <span class="token keyword">if</span>  count（$ filter）<span class="token operator">></span> <span class="token number">0</span> <span class="token operator">&amp;&amp;</span> $ isfilter <span class="token operator">==</span> <span class="token number">1</span> <span class="token punctuation">}</span>
<span class="token operator">&lt;</span>div <span class="token keyword">class</span> <span class="token operator">=</span> “filter” <span class="token operator">></span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> $ filter <span class="token keyword">as</span> $ rs<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token constant">DL</span><span class="token operator">></span>
<span class="token operator">&lt;</span>dd<span class="token operator">></span> <span class="token punctuation">{</span>$ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_title'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>：<span class="token operator">&lt;</span><span class="token operator">/</span> dd<span class="token operator">></span>
<span class="token operator">&lt;</span><span class="token constant">DT</span><span class="token operator">></span>
<span class="token operator">&lt;</span>a href <span class="token operator">=</span> “<span class="token punctuation">{</span>filter_url（$ cateurl，$ classid，deal_filter（$ filter_data，$ rs <span class="token punctuation">[</span><span class="token single-quoted-string string">'field_key'</span><span class="token punctuation">]</span>，<span class="token number">0</span>））<span class="token punctuation">}</span>” <span class="token punctuation">{</span> <span class="token keyword">if</span>  getint（F（<span class="token single-quoted-string string">'get。'</span>。$ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_key'</span> <span class="token punctuation">]</span> 。<span class="token single-quoted-string string">''</span>），<span class="token number">0</span>）<span class="token operator">==</span> <span class="token number">0</span> <span class="token punctuation">}</span> <span class="token keyword">class</span> <span class="token operator">=</span> “hover” <span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span><span class="token operator">></span>全部<span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span>
<span class="token punctuation">{</span> <span class="token keyword">if</span>  $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_type'</span> <span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token number">14</span> <span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ table _ <span class="token operator">=</span> $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_table'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ join _ <span class="token operator">=</span> $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_join'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ where _ <span class="token operator">=</span> $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_where'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ order _ <span class="token operator">=</span> $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_order'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ value <span class="token operator">=</span> $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_value'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ label <span class="token operator">=</span> $ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_label'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span> <span class="token keyword">if</span>  $ where _ <span class="token operator">==</span> <span class="token single-quoted-string string">''</span> <span class="token punctuation">}</span> <span class="token punctuation">{</span>php $ where_ <span class="token operator">=</span> <span class="token single-quoted-string string">'1 = 1'</span> <span class="token punctuation">}</span> <span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span>
<span class="token punctuation">{</span> <span class="token keyword">if</span>  $ order _ <span class="token operator">==</span> <span class="token single-quoted-string string">''</span> <span class="token punctuation">}</span> <span class="token punctuation">{</span>php $ order_ <span class="token operator">=</span> “$ value desc” <span class="token punctuation">}</span> <span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span>
<span class="token punctuation">{</span>sdcms：ra top <span class="token operator">=</span> “<span class="token number">0</span>”  table <span class="token operator">=</span> “$ table_”  join <span class="token operator">=</span> “$ join_”  where <span class="token operator">=</span> “$ where_”  order <span class="token operator">=</span> “$ order_” <span class="token punctuation">}</span>
<span class="token operator">&lt;</span>a href <span class="token operator">=</span> “<span class="token punctuation">{</span>filter_url（$ cateurl，$ classid，<span class="token single-quoted-string string">''</span>。deal_filter（$ filter_data，$ rs <span class="token punctuation">[</span><span class="token single-quoted-string string">'field_key'</span><span class="token punctuation">]</span>，$ ra <span class="token punctuation">[</span><span class="token single-quoted-string string">'。$ value。'</span><span class="token punctuation">]</span>））<span class="token punctuation">}</span>” <span class="token punctuation">{</span> <span class="token keyword">if</span>  getint（F（<span class="token single-quoted-string string">'get。'</span>。$ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_key'</span> <span class="token punctuation">]</span>。<span class="token single-quoted-string string">''</span>），<span class="token number">0</span>）<span class="token operator">==</span> $ ra <span class="token punctuation">[</span> <span class="token single-quoted-string string">'。$ value。'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span> <span class="token keyword">class</span> <span class="token operator">=</span> “hover” <span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span><span class="token operator">></span> <span class="token punctuation">{</span>$ ra <span class="token punctuation">[</span> <span class="token single-quoted-string string">'。$ label。'</span> <span class="token punctuation">]</span><span class="token punctuation">}</span> <span class="token operator">&lt;</span><span class="token operator">/</span>A<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span> sdcms：<span class="token constant">RA</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span> <span class="token keyword">else</span> <span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ arr <span class="token operator">=</span> explode（“，”，$ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_list'</span> <span class="token punctuation">]</span>）<span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> $ arr <span class="token keyword">as</span> $ j <span class="token operator">=</span><span class="token operator">></span> $ key<span class="token punctuation">}</span>
<span class="token punctuation">{</span>php $ data <span class="token operator">=</span> explode（“<span class="token operator">|</span>”，$ key）<span class="token punctuation">}</span>
<span class="token operator">&lt;</span>a href <span class="token operator">=</span> “<span class="token punctuation">{</span>filter_url（$ cateurl，$ classid，deal_filter（$ filter_data，$ rs <span class="token punctuation">[</span><span class="token single-quoted-string string">'field_key'</span><span class="token punctuation">]</span>，$ data <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span>））<span class="token punctuation">}</span>” <span class="token punctuation">{</span> <span class="token keyword">if</span>  getint（F（<span class="token single-quoted-string string">'get。'</span>。$ rs <span class="token punctuation">[</span> <span class="token single-quoted-string string">'field_key'</span> <span class="token punctuation">]</span>。<span class="token single-quoted-string string">''</span>），<span class="token number">0</span>）<span class="token operator">==</span> $ data <span class="token punctuation">[</span> <span class="token number">1</span> <span class="token punctuation">]</span><span class="token punctuation">}</span> <span class="token keyword">class</span> <span class="token operator">=</span> “hover” <span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span><span class="token operator">></span> <span class="token punctuation">{</span>$ data <span class="token punctuation">[</span> <span class="token number">0</span> <span class="token punctuation">]</span><span class="token punctuation">}</span> <span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">foreach</span><span class="token punctuation">}</span>的
<span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span> <span class="token constant">DT</span><span class="token operator">></span>
<span class="token operator">&lt;</span>div <span class="token keyword">class</span> <span class="token operator">=</span> “clear” <span class="token operator">></span> <span class="token operator">&lt;</span><span class="token operator">/</span> div<span class="token operator">></span>
<span class="token operator">&lt;</span><span class="token operator">/</span> <span class="token constant">DL</span><span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">foreach</span><span class="token punctuation">}</span>的
<span class="token operator">&lt;</span><span class="token operator">/</span> <span class="token constant">DIV</span><span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span> <span class="token keyword">if</span> <span class="token punctuation">}</span>
</pre><p>列表循环部分：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span>sdcms：rs  pagesize <span class="token operator">=</span> “$ catepage”  table <span class="token operator">=</span> “sd_content”  join <span class="token operator">=</span> “$ join”  where <span class="token operator">=</span> “$ where”  order <span class="token operator">=</span> “ontop desc，ordnum desc，id desc” <span class="token punctuation">}</span>
循环部分的标签格式：<span class="token punctuation">{</span>$ rs <span class="token punctuation">[</span>字段名<span class="token punctuation">]</span><span class="token punctuation">}</span>主表和副表的任何字段均可直接调用
<span class="token punctuation">{</span><span class="token operator">/</span> sdcms：<span class="token constant">RS</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span> div  <span class="token keyword">class</span> <span class="token operator">=</span> “pagelist” <span class="token operator">></span> <span class="token operator">&lt;</span> ul <span class="token operator">></span> <span class="token punctuation">{</span>$ showpage<span class="token punctuation">}</span> <span class="token operator">&lt;</span><span class="token operator">/</span> ul <span class="token operator">></span> <span class="token operator">&lt;</span><span class="token operator">/</span> div <span class="token operator">></span>
</pre><h4 class="mume-header" id="%E6%96%B0%E9%97%BB%E6%A8%A1%E5%9E%8B%E5%86%85%E5%AE%B9%E9%A1%B5%E6%A0%87%E7%AD%BE">新闻模型内容页标签</h4>

<p>优化标题：</p>
<blockquote>
<p>{$seotitle}</p>
</blockquote>
<p>关键字：</p>
<blockquote>
<p>{$seokey}</p>
</blockquote>
<p>描述：</p>
<blockquote>
<p>{$seodesc}</p>
</blockquote>
<p>面包屑导航</p>
<pre data-role="codeBlock" data-info="PHP" class="language-php"><span class="token operator">&lt;</span>ol<span class="token operator">></span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{WEB_ROOT}"</span> <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"am-icon-home"</span><span class="token operator">></span>首页<span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$position</span> <span class="token keyword">as</span> <span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{cateurl(<span class="token interpolation"><span class="token variable">$rs</span></span>)}"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"{get_catename(<span class="token interpolation"><span class="token variable">$rs</span></span>)}"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token function">get_catename</span><span class="token punctuation">(</span><span class="token variable">$rs</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"am-active"</span><span class="token operator">></span>内容<span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token operator">&lt;</span><span class="token operator">/</span>ol<span class="token operator">></span>
</pre><p>标题：</p>
<blockquote>
<p>{$title}</p>
</blockquote>
<p>日期：</p>
<blockquote>
<p>{date('Y-m-d',$createdate)}</p>
</blockquote>
<p>人气：</p>
<blockquote>
<p>{$hits}</p>
</blockquote>
<p>简介：</p>
<blockquote>
<p>{$intro}</p>
</blockquote>
<p>内容：</p>
<blockquote>
<p>{$content}</p>
</blockquote>
<p>内容分页代码：</p>
<pre data-role="codeBlock" data-info="PHP" class="language-php"><span class="token operator">&lt;</span>ul<span class="token operator">></span><span class="token punctuation">{</span><span class="token function">pagelist</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token punctuation">,</span><span class="token variable">$pagenum</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>ul<span class="token operator">></span>
</pre><p>内容页Tag：</p>
<pre data-role="codeBlock" data-info="PHP" class="language-php"><span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tags</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$tags</span> <span class="token keyword">as</span> <span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{U('home/other/taglist/','tagname='.<span class="token interpolation"><span class="token variable">$rs</span></span>.'')}"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span></span>"</span> target<span class="token operator">=</span><span class="token double-quoted-string string">"_blank"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><p>相关内容：</p>
<pre data-role="codeBlock" data-info="PHP" class="language-php"><span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tags</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>ul<span class="token operator">></span>
<span class="token punctuation">{</span>sdcms<span class="token punctuation">:</span>rs top<span class="token operator">=</span><span class="token double-quoted-string string">"10"</span> table<span class="token operator">=</span><span class="token double-quoted-string string">"sd_content"</span> where<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token variable">$like</span></span>"</span> order<span class="token operator">=</span><span class="token double-quoted-string string">"ontop desc,ordnum desc,id desc"</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>rs<span class="token punctuation">:</span>eof<span class="token punctuation">}</span>暂无资料<span class="token punctuation">{</span><span class="token operator">/</span>rs<span class="token punctuation">:</span>eof<span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>span<span class="token operator">></span><span class="token punctuation">{</span><span class="token function">date</span><span class="token punctuation">(</span><span class="token single-quoted-string string">'m-d'</span><span class="token punctuation">,</span><span class="token variable">$rs</span><span class="token punctuation">[</span>createdate<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>span<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>link<span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span>sdcms<span class="token punctuation">:</span>rs<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>ul<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><h4 class="mume-header" id="%E6%8B%9B%E8%81%98%E6%A8%A1%E5%9E%8B%E5%86%85%E5%AE%B9%E9%A1%B5%E6%A0%87%E7%AD%BE">招聘模型内容页标签</h4>

<p>优化标题：</p>
<blockquote>
<p>{$seotitle}</p>
</blockquote>
<p>关键字：</p>
<blockquote>
<p>{$seokey}</p>
</blockquote>
<p>描述：</p>
<blockquote>
<p>{$seodesc}</p>
</blockquote>
<p>面包屑导航：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token operator">&lt;</span>ol<span class="token operator">></span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{WEB_ROOT}"</span> <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"am-icon-home"</span><span class="token operator">></span>首页<span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$position</span> <span class="token keyword">as</span> <span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{cateurl(<span class="token interpolation"><span class="token variable">$rs</span></span>)}"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"{get_catename(<span class="token interpolation"><span class="token variable">$rs</span></span>)}"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token function">get_catename</span><span class="token punctuation">(</span><span class="token variable">$rs</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"am-active"</span><span class="token operator">></span>内容<span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token operator">&lt;</span><span class="token operator">/</span>ol<span class="token operator">></span>
</pre><p>标题：</p>
<blockquote>
<p>{$title}</p>
</blockquote>
<p>工作地点：</p>
<blockquote>
<p>{$work_address}</p>
</blockquote>
<p>工作性质：</p>
<blockquote>
<p>{$work_nature}</p>
</blockquote>
<p>学历要求：</p>
<blockquote>
<p>{$work_education}</p>
</blockquote>
<p>工作年限：</p>
<blockquote>
<p>{$work_age}</p>
</blockquote>
<p>薪资待遇：</p>
<blockquote>
<p>{$work_money}</p>
</blockquote>
<p>招聘人数：</p>
<blockquote>
<p>{$work_num}</p>
</blockquote>
<p>日期：</p>
<blockquote>
<p>{date('Y-m-d',$createdate)}</p>
</blockquote>
<p>人气：</p>
<blockquote>
<p>{$hits}</p>
</blockquote>
<p>工作内容：</p>
<blockquote>
<p>{$content}</p>
</blockquote>
<p>任职要求：</p>
<blockquote>
<p>{$intro}</p>
</blockquote>
<p>内容页Tag：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tags</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$tags</span> <span class="token keyword">as</span> <span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{U('home/other/taglist/','tagname='.<span class="token interpolation"><span class="token variable">$rs</span></span>.'')}"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span></span>"</span> target<span class="token operator">=</span><span class="token double-quoted-string string">"_blank"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><p>相关内容：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tags</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>ul<span class="token operator">></span>
<span class="token punctuation">{</span>sdcms<span class="token punctuation">:</span>rs top<span class="token operator">=</span><span class="token double-quoted-string string">"10"</span> table<span class="token operator">=</span><span class="token double-quoted-string string">"sd_content"</span> where<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token variable">$like</span></span>"</span> order<span class="token operator">=</span><span class="token double-quoted-string string">"ontop desc,ordnum desc,id desc"</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>rs<span class="token punctuation">:</span>eof<span class="token punctuation">}</span>暂无资料<span class="token punctuation">{</span><span class="token operator">/</span>rs<span class="token punctuation">:</span>eof<span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>span<span class="token operator">></span><span class="token punctuation">{</span><span class="token function">date</span><span class="token punctuation">(</span><span class="token single-quoted-string string">'m-d'</span><span class="token punctuation">,</span><span class="token variable">$rs</span><span class="token punctuation">[</span>createdate<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>span<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>link<span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span>sdcms<span class="token punctuation">:</span>rs<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>ul<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><h4 class="mume-header" id="%E4%BA%A7%E5%93%81%E6%A8%A1%E5%9E%8B%E5%86%85%E5%AE%B9%E9%A1%B5%E6%A0%87%E7%AD%BE">产品模型内容页标签</h4>

<p>优化标题：</p>
<blockquote>
<p>{$seotitle}</p>
</blockquote>
<p>关键字：</p>
<blockquote>
<p>{$seokey}</p>
</blockquote>
<p>描述：</p>
<blockquote>
<p>{$seodesc}</p>
</blockquote>
<p>面包屑导航：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token operator">&lt;</span>ol<span class="token operator">></span>
<span class="token operator">&lt;</span>li<span class="token operator">></span>
<span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{WEB_ROOT}"</span> <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"am-icon-home"</span><span class="token operator">></span>首页<span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$position</span> <span class="token keyword">as</span> <span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{cateurl(<span class="token interpolation"><span class="token variable">$rs</span></span>)}"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"{get_catename(<span class="token interpolation"><span class="token variable">$rs</span></span>)}"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token function">get_catename</span><span class="token punctuation">(</span><span class="token variable">$rs</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"am-active"</span><span class="token operator">></span>内容<span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token operator">&lt;</span><span class="token operator">/</span>ol<span class="token operator">></span>
</pre><p>标题：</p>
<blockquote>
<p>{$title}</p>
</blockquote>
<p>日期：</p>
<blockquote>
<p>{date('Y-m-d',$createdate)}</p>
</blockquote>
<p>人气：</p>
<blockquote>
<p>{$hits}</p>
</blockquote>
<p>简介：</p>
<blockquote>
<p>{$intro}</p>
</blockquote>
<p>价格：</p>
<blockquote>
<p>{$price}</p>
</blockquote>
<p>内容：</p>
<blockquote>
<p>{$content}</p>
</blockquote>
<p>循环显示组图标签：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span>php <span class="token variable">$piclist</span><span class="token operator">=</span><span class="token function">json_decode</span><span class="token punctuation">(</span><span class="token variable">$piclist</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$piclist</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php <span class="token variable">$step</span><span class="token operator">=</span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$piclist</span> <span class="token keyword">as</span> <span class="token variable">$index</span><span class="token operator">=</span><span class="token operator">></span><span class="token variable">$val</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>php <span class="token variable">$step</span><span class="token operator">++</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token variable">$step</span><span class="token operator">==</span><span class="token number">1</span><span class="token punctuation">}</span> <span class="token keyword">class</span><span class="token operator">=</span><span class="token double-quoted-string string">"hover"</span><span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span><span class="token operator">></span><span class="token operator">&lt;</span>img src<span class="token operator">=</span><span class="token double-quoted-string string">"{thumb(<span class="token interpolation"><span class="token variable">$val</span><span class="token punctuation">[</span><span class="token single-quoted-string string">'image'</span><span class="token punctuation">]</span></span>,60,60)}"</span> data<span class="token operator">-</span>url<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$val</span><span class="token punctuation">[</span><span class="token single-quoted-string string">'image'</span><span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span> alt<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$val</span><span class="token punctuation">[</span><span class="token single-quoted-string string">'desc'</span><span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span> width<span class="token operator">=</span><span class="token double-quoted-string string">"60"</span> height<span class="token operator">=</span><span class="token double-quoted-string string">"60"</span><span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><p>用户自定义字段循环标签（模型级）：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$field</span> <span class="token keyword">as</span> <span class="token variable">$key</span><span class="token operator">=</span><span class="token operator">></span><span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token operator">!</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$rs</span><span class="token punctuation">)</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>em<span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$key</span><span class="token punctuation">}</span>：<span class="token operator">&lt;</span><span class="token operator">/</span>em<span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
</pre><p>内容扩展循环标签：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$edata</span> <span class="token keyword">as</span> <span class="token variable">$key</span><span class="token operator">=</span><span class="token operator">></span><span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>em<span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span><span class="token single-quoted-string string">'field_title'</span><span class="token punctuation">]</span><span class="token punctuation">}</span>：<span class="token operator">&lt;</span><span class="token operator">/</span>em<span class="token operator">></span><span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">isset</span><span class="token punctuation">(</span><span class="token variable">$extend</span><span class="token punctuation">[</span><span class="token variable">$rs</span><span class="token punctuation">[</span><span class="token single-quoted-string string">'field_key'</span><span class="token punctuation">]</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token punctuation">{</span><span class="token variable">$extend</span><span class="token punctuation">[</span><span class="token variable">$rs</span><span class="token punctuation">[</span><span class="token single-quoted-string string">'field_key'</span><span class="token punctuation">]</span><span class="token punctuation">]</span><span class="token punctuation">}</span><span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
内容页Tag：

<span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tags</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token keyword">foreach</span> <span class="token variable">$tags</span> <span class="token keyword">as</span> <span class="token variable">$rs</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"{U('home/other/taglist/','tagname='.<span class="token interpolation"><span class="token variable">$rs</span></span>.'')}"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span></span>"</span> target<span class="token operator">=</span><span class="token double-quoted-string string">"_blank"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">foreach</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><p>相关内容：</p>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token punctuation">{</span><span class="token keyword">if</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tags</span><span class="token punctuation">)</span><span class="token operator">></span><span class="token number">0</span><span class="token punctuation">}</span>
<span class="token operator">&lt;</span>ul<span class="token operator">></span>
<span class="token punctuation">{</span>sdcms<span class="token punctuation">:</span>rs top<span class="token operator">=</span><span class="token double-quoted-string string">"10"</span> table<span class="token operator">=</span><span class="token double-quoted-string string">"sd_content"</span> where<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token variable">$like</span></span>"</span> order<span class="token operator">=</span><span class="token double-quoted-string string">"ontop desc,ordnum desc,id desc"</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span>rs<span class="token punctuation">:</span>eof<span class="token punctuation">}</span>暂无资料<span class="token punctuation">{</span><span class="token operator">/</span>rs<span class="token punctuation">:</span>eof<span class="token punctuation">}</span>
<span class="token operator">&lt;</span>li<span class="token operator">></span><span class="token operator">&lt;</span>span<span class="token operator">></span><span class="token punctuation">{</span><span class="token function">date</span><span class="token punctuation">(</span><span class="token single-quoted-string string">'m-d'</span><span class="token punctuation">,</span><span class="token variable">$rs</span><span class="token punctuation">[</span>createdate<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>span<span class="token operator">></span><span class="token operator">&lt;</span>a href<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>link<span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span> title<span class="token operator">=</span><span class="token double-quoted-string string">"<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span></span>"</span><span class="token operator">></span><span class="token punctuation">{</span><span class="token variable">$rs</span><span class="token punctuation">[</span>title<span class="token punctuation">]</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>a<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>li<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span>sdcms<span class="token punctuation">:</span>rs<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>ul<span class="token operator">></span>
<span class="token punctuation">{</span><span class="token operator">/</span><span class="token keyword">if</span><span class="token punctuation">}</span>
</pre><h3 class="mume-header" id="%E6%A8%A1%E6%9D%BF%E8%AE%BE%E8%AE%A1">模板设计</h3>

<h4 class="mume-header" id="%E6%A8%A1%E6%9D%BF%E7%BB%93%E6%9E%84">模板结构</h4>

<pre data-role="codeBlock" data-info="php" class="language-php">└─<span class="token keyword">default</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>默认模板<span class="token punctuation">]</span>
    │  book<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>留言模板<span class="token punctuation">]</span>
    │  error<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>错误提示<span class="token punctuation">]</span>
    │  foot<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>底部模板<span class="token punctuation">]</span>
    │  head<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>头部模板<span class="token punctuation">]</span>
    │  index<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>首页模板<span class="token punctuation">]</span>
    │  search<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>搜索模板<span class="token punctuation">]</span>
    │  sitemap<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>网站地图<span class="token punctuation">]</span>
    │  taglist<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>标签内容页<span class="token punctuation">]</span>
    │  tags<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>标签<span class="token punctuation">]</span>
    │  theme<span class="token punctuation">.</span>jpg<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>模板缩略图<span class="token punctuation">]</span>
    │  top<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>模板顶部<span class="token punctuation">]</span>
    │  _config<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>模板指向文件<span class="token punctuation">]</span>
    │  _note<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>模板文件别名<span class="token punctuation">]</span>
    │  _theme<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>模板配置文件<span class="token punctuation">]</span>
    │  
    ├─block<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>区块文件夹<span class="token punctuation">]</span>
    │      about<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>首页公司简介区块<span class="token punctuation">]</span>
    │
    ├─content<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>内容模型<span class="token punctuation">]</span>
    │  ├─form<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>表单模型<span class="token punctuation">]</span>
    │  │      add<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>表单提交页<span class="token punctuation">]</span>
    │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>表单列表页<span class="token punctuation">]</span>
    │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>表单内容页<span class="token punctuation">]</span>
    │  │
    │  ├─job<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>招聘模型<span class="token punctuation">]</span>
    │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>招聘列表<span class="token punctuation">]</span>
    │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>招聘内容页<span class="token punctuation">]</span>
    │  │
    │  ├─news<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>文章模型<span class="token punctuation">]</span>
    │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>文章列表：文字式<span class="token punctuation">]</span>
    │  │      list_pic<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>文章列表：图片式<span class="token punctuation">]</span>
    │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>文章内容页<span class="token punctuation">]</span>
    │  │
    │  ├─page<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>单页模型<span class="token punctuation">]</span>
    │  │      page<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>单页模板<span class="token punctuation">]</span>
    │  │
    │  ├─pro<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>产品模型<span class="token punctuation">]</span>
    │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>产品列表<span class="token punctuation">]</span>
    │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>产品内容页<span class="token punctuation">]</span>
    │  └─weixin<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>微信公众号<span class="token punctuation">]</span>
    │          show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>内容页<span class="token punctuation">]</span>
    │
    ├─css<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>样式文件<span class="token punctuation">]</span>
    │
    ├─images<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>图片文件<span class="token punctuation">]</span>
    │
    ├─js<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>脚本文件<span class="token punctuation">]</span>
    │
    └─mobile<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>手机站模板<span class="token punctuation">]</span>
        │  bar<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>导航菜单<span class="token punctuation">]</span>
        │  book<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>留言模板<span class="token punctuation">]</span>
        │  error<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>错误提示<span class="token punctuation">]</span>
        │  foot<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>底部模板<span class="token punctuation">]</span>
        │  head<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>头部模板<span class="token punctuation">]</span>
        │  index<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>首页模板<span class="token punctuation">]</span>
        │  search<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>搜索模板<span class="token punctuation">]</span>
        │  sitemap<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>网站地图<span class="token punctuation">]</span>
        │  taglist<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>标签内容页<span class="token punctuation">]</span>
        │  tags<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>标签列表<span class="token punctuation">]</span>
        │  top<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>模板顶部<span class="token punctuation">]</span>
        │  
        ├─content<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>内容模型<span class="token punctuation">]</span>
        │  ├─form<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>表单模型<span class="token punctuation">]</span>
        │  │      add<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>表单提交页<span class="token punctuation">]</span>
        │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>表单列表页<span class="token punctuation">]</span>
        │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>表单内容页<span class="token punctuation">]</span>
        │  │
        │  ├─job<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>招聘模型<span class="token punctuation">]</span>
        │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>招聘列表<span class="token punctuation">]</span>
        │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>招聘内容页<span class="token punctuation">]</span>
        │  │
        │  ├─news<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>文章模型<span class="token punctuation">]</span>
        │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>文章列表：文字式<span class="token punctuation">]</span>
        │  │      list_pic<span class="token punctuation">.</span>php<span class="token punctuation">[</span>文章列表：图片式<span class="token punctuation">]</span>
        │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>文章内容页<span class="token punctuation">]</span>
        │  │
        │  ├─page<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>单页模型<span class="token punctuation">]</span>
        │  │      page<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>单页模板<span class="token punctuation">]</span>
        │  │
        │  ├─pro<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>产品模型<span class="token punctuation">]</span>
        │  │      list<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>产品列表<span class="token punctuation">]</span>
        │  │      show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>产品内容页<span class="token punctuation">]</span>
        │  └─weixin<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>微信公众号<span class="token punctuation">]</span>
        │          show<span class="token punctuation">.</span>php<span class="token operator">--</span><span class="token punctuation">[</span>内容页<span class="token punctuation">]</span>
        │
        ├─css<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token punctuation">[</span>样式文件<span class="token punctuation">]</span>
        ├─images<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>图片文件<span class="token punctuation">]</span>
        └─js<span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">-</span><span class="token punctuation">[</span>脚本文件<span class="token punctuation">]</span>
</pre><h4 class="mume-header" id="%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98">常见问题</h4>

<blockquote>
<p>1、模板存放形式：模板文件以文件夹形式存放于theme文件夹中，一套模板一个文件夹。不建议多套模板的资源互用。</p>
</blockquote>
<blockquote>
<p>2、模板文件标准配置要求：<br>
_config.php （模板指向文件）<br>
_note.php （模板文件别名）<br>
_theme.php （模板配置文件）<br>
theme.jpg （模板的缩略图，后台显示使用）<br>
这四个文件是一套模板最基本的文件要求，名称不可以修改。相关用法请参考默认模板。只有模板文件夹中存在这些文件，后台的界面管理里才能看到这套模板。</p>
</blockquote>
<blockquote>
<p>3、关于模板文件的编码要求：因程序使用UTF-8编码，所以也同时要求模板文件也使用UTF-8编码保存，使用其他编码可能前台显示会乱码</p>
</blockquote>

      </div>
      
      
    </body>
    
    
    
    
    
    
    
  </html>